<html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("#authorize").click(function(){
    location.href="https://auth.login.yahoo.co.jp/yconnect/v1/authorization?response_type=token&client_id=dj0zaiZpPW5JUWgyOThacGh3MiZzPWNvbnN1bWVyc2VjcmV0Jng9OWI-&redirect_uri=https://ochime.googlecode.com/svn/trunk/index.html&state=hoge";
  });
  if(location.href.match( /\#access_token\=([^=&]+)/ )){
    alert(RegExp.$1);
    $("#token").val(RegExp.$1);
  }

});
</script>
<body>
<button id="authorize">認証</button>
<textarea id="token">
</textarea>

</body>
</html>
